-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRR-387: Panels
: Updated documentation for arranger
#1752
Conversation
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1752 +/- ##
===========================================
+ Coverage 80.80% 81.77% +0.96%
===========================================
Files 148 148
Lines 6675 7022 +347
Branches 1985 2148 +163
===========================================
+ Hits 5394 5742 +348
- Misses 972 973 +1
+ Partials 309 307 -2 ☔ View full report in Codecov by Sentry. |
Panels
: Updated documentation for arranger
internal/Panels/Arrangers.js
Outdated
@@ -129,6 +129,9 @@ const deferArrange = (config, keyframes, options) => { | |||
/** | |||
* Arranger that slides panels in from the right and out to the left. | |||
* | |||
* This arranger is visually same as {@link ui/ViewManager.SlideLeftArranger} when transition but uses transform percentages instead of pixel values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like ui/ViewManager.SlideLeftArranger
already use percentages. So I think this comment should be revised.
If the visual is the same, what makes difference between SlideLeftArranger
and BasicArranger
?
I see BasicArranger uses deferArrange
and offset
. Please find more details about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offset
values here don't affect animation (https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats)deferArrange
was defined in PLAT-112222: Change BasicArranger to defer animation until idle #577 and it prevents skipping transition animations under system load. I updated the comments.
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Checklist
Issue Resolved / Feature Added
Default value of
arranger
prop inSandstone/Panels
does not match the documentation.Documentation says the default is
ui/ViewManager.SlideLeftArranger
, but actual value isBasicArranger
frominternals/Panles/Arrangers.js
.Resolution
Default value was changed in #315 from
SlideLeftArranger
toBasicArranger
andarrange
inBasicArranger
was changed todeferArrange
in #577But
BasicArranger
is for internal use.So instead of updating documentation of
arranger
inSandstone/Panels
, I updated documentation ofBasicArranger
to explain what it is.Additional Considerations
Links
WRR-387
Comments
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)